package com.zhihuiyanche.dao;

import java.util.List;
import java.util.Map;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

import org.apache.ibatis.annotations.Param;

import com.zhihuiyanche.domain.Orders;
import com.zhihuiyanche.domain.OrdersExample;

public interface OrdersMapper {
    int countByExample(OrdersExample example);

    int deleteByExample(OrdersExample example);

    int insert(Orders record);

    int insertSelective(Orders record);

    List<Orders> queryOrdersByCondition(Orders record);
    
    int queryOrdersCountBefer(Map<String,Object> map);

    int updateByExampleSelective(@Param("record") Orders record, @Param("example") OrdersExample example);

    int updateByExample(@Param("record") Orders record, @Param("example") OrdersExample example);
    
    JSONArray getOrdersByCondition(JSONObject orders);
    
    int getOrdersCountByCondition(JSONObject orders);
    
    List<String> getOrderDateDesc(String shopId);
    
    String getOrderDateCount(JSONObject data);
}
